package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Programmerecord implements Serializable {
    private String prno;

    private Integer mano;

    private Integer eno;

    private Integer atrno;

    private String prtitle;

    private String ptcontent;

    private Integer prprice;

    private static final long serialVersionUID = 1L;

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public Integer getMano() {
        return mano;
    }

    public void setMano(Integer mano) {
        this.mano = mano;
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public Integer getAtrno() {
        return atrno;
    }

    public void setAtrno(Integer atrno) {
        this.atrno = atrno;
    }

    public String getPrtitle() {
        return prtitle;
    }

    public void setPrtitle(String prtitle) {
        this.prtitle = prtitle;
    }

    public String getPtcontent() {
        return ptcontent;
    }

    public void setPtcontent(String ptcontent) {
        this.ptcontent = ptcontent;
    }

    public Integer getPrprice() {
        return prprice;
    }

    public void setPrprice(Integer prprice) {
        this.prprice = prprice;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Programmerecord other = (Programmerecord) that;
        return (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getMano() == null ? other.getMano() == null : this.getMano().equals(other.getMano()))
            && (this.getEno() == null ? other.getEno() == null : this.getEno().equals(other.getEno()))
            && (this.getAtrno() == null ? other.getAtrno() == null : this.getAtrno().equals(other.getAtrno()))
            && (this.getPrtitle() == null ? other.getPrtitle() == null : this.getPrtitle().equals(other.getPrtitle()))
            && (this.getPtcontent() == null ? other.getPtcontent() == null : this.getPtcontent().equals(other.getPtcontent()))
            && (this.getPrprice() == null ? other.getPrprice() == null : this.getPrprice().equals(other.getPrprice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getMano() == null) ? 0 : getMano().hashCode());
        result = prime * result + ((getEno() == null) ? 0 : getEno().hashCode());
        result = prime * result + ((getAtrno() == null) ? 0 : getAtrno().hashCode());
        result = prime * result + ((getPrtitle() == null) ? 0 : getPrtitle().hashCode());
        result = prime * result + ((getPtcontent() == null) ? 0 : getPtcontent().hashCode());
        result = prime * result + ((getPrprice() == null) ? 0 : getPrprice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prno=").append(prno);
        sb.append(", mano=").append(mano);
        sb.append(", eno=").append(eno);
        sb.append(", atrno=").append(atrno);
        sb.append(", prtitle=").append(prtitle);
        sb.append(", ptcontent=").append(ptcontent);
        sb.append(", prprice=").append(prprice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}